<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\index\controller;
use think\Controller;
use think\Request;
use think\Db;
use app\index\model\Product;
/**
 * Description of Detail
 *
 * @author hasee
 */
class Detail extends Controller{
    //put your code here
    public function index(Request $request) {
        $pid= input("pid");
        $result=Db::name("product")->where("pid",$pid)->find();
//        $result= Product::get($id);
        
                return view("/product/product",['data'=>$result]);
//        return view("/good/goods",["data"=>$result5]);
    }
}
